export function validate_email(value){
  let regEmail = /^([a-zA-Z]|[0-9])(\w|\-)+@[a-zA-Z0-9]+\.([a-zA-Z]{2,4})$/;
  return regEmail.test(value);
}

export function validate_password(value){
  let regPassword = /^(?!\D+$)(?![^a-zA-Z]+$)\S{6,20}$/;
  return regPassword.test(value);
}

// 手机号验证规则
export function validate_phone(value) {
  let regPhone = /^1[345789]\d{9}$/;
  return regPhone.test(value);
}